<template>
	<!-- shellmanagement米券管理 -->
	<view class="s_wp">
		<view class="s_item" v-for="item in list" @click="$navTo('/pages/groupmenu/rechargeRecord?id='+item.uid)">
			<image :src="item.logo" mode=""></image>
			<view class="s_info">
				<view class="s_title clamp2">{{item.supname}}</view>
				<view class="s_num">多米街消费卡余额 <text>{{item.usemoney}}</text></view>
			</view>
			<view class="dis">{{Number(item.discount).toFixed(2)}}折</view>
		</view>
		<view class="none_data" v-if="list.length==0">无数据</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [],
			}
		},
		onLoad() {
			this.getList();
		},
		methods: {
			getList() {
				this.$axios('groupchange/lists', 'POST', 'supplier').then(res => {
					if (res.data.code == 200) {
						this.list = res.data.data;
					}
				})
			}
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #FBF8FE;
		color: $font-color-base;
		padding-bottom: 130upx;
	}

	.s_wp {
		overflow: hidden;
		padding: 20rpx;
	}

	.s_item {
		background: #fff;
		display: flex;
		align-items: center;
		margin-bottom: 20rpx;
		padding: 20upx;
		border-radius: 12rpx;
	}

	.s_item image {
		border-radius: 12rpx;
		height: 144rpx;
		width: 144rpx;
	}

	.s_info {
		flex: 1;
		padding: 0 20upx;
		.s_title{
			font-size: 28rpx;
			color: #333333;
			font-weight: 600;
			margin-bottom: 20rpx;
		}
	}
	.dis{
		height: 60rpx;
		line-height: 60rpx;
		background: #F3E4FF;
		border-radius: 30rpx;
		padding: 0 20rpx;
		font-size: 28rpx;
		color: #8615E1;
		text-align: center;
		font-weight: 600;
	}

	.s_num {
		color: #333;
		font-size: 24rpx;
	}

	.s_num text {
		color: #8615E1;
		font-weight: bold;
		margin-left: 10rpx;
	}

	.s_button {
		margin: 0;
		position: fixed;
		left: 3%;
		bottom: 30upx;
	}

	.loading_message {
		padding: 40upx;
		color: #0062CC;
		text-align: center;
	}

	.loading_message image {
		height: 50upx;
		width: 50upx;
	}
</style>
